<?php
use Yii\helpers\Html;
$this->title = '移动端设置';
?>
<div class="container">
    <div class="row">
      
        <?php echo $this->render('_leftnav') ?>
        <div class="col-md-10">
          <div class="page-header clearfix">
            <h1 class="pull-left">移动端设置</h1>
            <div class="pull-right">

                                            
            </div>
          </div>

          
          
                              
          
          <style>
#mobile-splash1-container img ,
#mobile-splash2-container img ,
#mobile-splash3-container img ,
#mobile-splash4-container img ,
#mobile-splash5-container img ,
#mobile-logo-container img ,
#site-appcover-container img,
#site-applogo-container img
{max-width: 80%; margin-bottom: 10px;}
</style>

  

<form class="form-horizontal" id="mobile-form" method="post">

  <div class="form-group">
    <div class="col-md-2 control-label">
      <label>是否开启客户端</label>
    </div>
    <div class="controls col-md-8 radios">
      <label><input name="enabled" value="1" checked="checked" type="radio"> 开启</label><label><input name="enabled" value="0" type="radio"> 关闭</label>
      <div class="help-block">开启后，网站首页顶部导航会出现客户端入口<a href="http://dcoffee.edusoho.com.cn/admin/operation/mobile">常规设置点这里</a></div>
    </div>
  </div>

  <div class="form-group ">
    <div class="col-md-2 control-label">
      <label>版本选择</label>
    </div>
    <div class="controls col-md-8 radios">
      <label><input name="ver" value="1" checked="checked" type="radio"> 新版APP</label><label><input name="ver" value="0" type="radio"> 旧版APP</label>
    </div>
  </div>
  
  <div class="form-group">
    <div class="col-md-2 control-label">
      <label for="mobile_about">网校简介</label>
    </div>
    <div class="controls col-md-8">
      <textarea style="visibility: hidden; display: none;" class="form-control" id="mobile_about" rows="10" name="about" data-image-upload-url="/editor/upload?token=MTR8ZGVmYXVsdHxpbWFnZXwxNDQ3NzM3NDQzfDZlNzQzNzkzYTEzMTE5NTQwOThiNjRlZDkzNTE1YmVm"></textarea><div id="cke_mobile_about" class="cke_1 cke cke_reset cke_chrome cke_editor_mobile_about cke_ltr cke_browser_gecko" dir="ltr" role="application" lang="zh-cn"><div class="cke_inner cke_reset" role="presentation"><span id="cke_1_top" class="cke_top cke_reset_all" role="presentation" style="height: auto; -moz-user-select: none;"><span id="cke_8" class="cke_voice_label">工具栏</span><span id="cke_1_toolbox" class="cke_toolbox" role="group" aria-labelledby="cke_8" onmousedown="return false;"><span id="cke_9" class="cke_toolbar" role="toolbar"><span class="cke_toolbar_start"></span><span class="cke_toolgroup" role="presentation"><a id="cke_10" class="cke_button cke_button__bold  cke_button_off" title="加粗" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_10_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(1,event);" onfocus="return CKEDITOR.tools.callFunction(2,event);" onclick="CKEDITOR.tools.callFunction(3,this);return false;"><span class="cke_button_icon cke_button__bold_icon" style="background-image:url(http://dcoffee.edusoho.com.cn/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -24px;background-size:auto;">&nbsp;</span><span id="cke_10_label" class="cke_button_label cke_button__bold_label" aria-hidden="false">加粗</span></a><a id="cke_11" class="cke_button cke_button__italic  cke_button_off" title="倾斜" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_11_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(4,event);" onfocus="return CKEDITOR.tools.callFunction(5,event);" onclick="CKEDITOR.tools.callFunction(6,this);return false;"><span class="cke_button_icon cke_button__italic_icon" style="background-image:url(http://dcoffee.edusoho.com.cn/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -48px;background-size:auto;">&nbsp;</span><span id="cke_11_label" class="cke_button_label cke_button__italic_label" aria-hidden="false">倾斜</span></a><a id="cke_12" class="cke_button cke_button__underline  cke_button_off" title="下划线" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_12_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(7,event);" onfocus="return CKEDITOR.tools.callFunction(8,event);" onclick="CKEDITOR.tools.callFunction(9,this);return false;"><span class="cke_button_icon cke_button__underline_icon" style="background-image:url(http://dcoffee.edusoho.com.cn/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -144px;background-size:auto;">&nbsp;</span><span id="cke_12_label" class="cke_button_label cke_button__underline_label" aria-hidden="false">下划线</span></a><a id="cke_13" class="cke_button cke_button__textcolor cke_button_off " title="文本颜色" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_13_label" aria-haspopup="true" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(10,event);" onfocus="return CKEDITOR.tools.callFunction(11,event);" onclick="CKEDITOR.tools.callFunction(12,this);return false;"><span class="cke_button_icon cke_button__textcolor_icon" style="background-image:url(http://dcoffee.edusoho.com.cn/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -432px;background-size:auto;">&nbsp;</span><span id="cke_13_label" class="cke_button_label cke_button__textcolor_label" aria-hidden="false">文本颜色</span><span class="cke_button_arrow"></span></a><span class="cke_toolbar_separator" role="separator"></span><a id="cke_14" class="cke_button cke_button__removeformat  cke_button_off" title="清除格式" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_14_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(13,event);" onfocus="return CKEDITOR.tools.callFunction(14,event);" onclick="CKEDITOR.tools.callFunction(15,this);return false;"><span class="cke_button_icon cke_button__removeformat_icon" style="background-image:url(http://dcoffee.edusoho.com.cn/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1728px;background-size:auto;">&nbsp;</span><span id="cke_14_label" class="cke_button_label cke_button__removeformat_label" aria-hidden="false">清除格式</span></a><a id="cke_15" class="cke_button cke_button__pastetext  cke_button_off" title="粘贴为无格式文本" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_15_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(16,event);" onfocus="return CKEDITOR.tools.callFunction(17,event);" onclick="CKEDITOR.tools.callFunction(18,this);return false;"><span class="cke_button_icon cke_button__pastetext_icon" style="background-image:url(http://dcoffee.edusoho.com.cn/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1608px;background-size:auto;">&nbsp;</span><span id="cke_15_label" class="cke_button_label cke_button__pastetext_label" aria-hidden="false">粘贴为无格式文本</span></a><span class="cke_toolbar_separator" role="separator"></span><a id="cke_16" class="cke_button cke_button__numberedlist  cke_button_off" title="编号列表" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_16_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(19,event);" onfocus="return CKEDITOR.tools.callFunction(20,event);" onclick="CKEDITOR.tools.callFunction(21,this);return false;"><span class="cke_button_icon cke_button__numberedlist_icon" style="background-image:url(http://dcoffee.edusoho.com.cn/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1368px;background-size:auto;">&nbsp;</span><span id="cke_16_label" class="cke_button_label cke_button__numberedlist_label" aria-hidden="false">编号列表</span></a><a id="cke_17" class="cke_button cke_button__bulletedlist  cke_button_off" title="项目列表" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_17_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(22,event);" onfocus="return CKEDITOR.tools.callFunction(23,event);" onclick="CKEDITOR.tools.callFunction(24,this);return false;"><span class="cke_button_icon cke_button__bulletedlist_icon" style="background-image:url(http://dcoffee.edusoho.com.cn/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1320px;background-size:auto;">&nbsp;</span><span id="cke_17_label" class="cke_button_label cke_button__bulletedlist_label" aria-hidden="false">项目列表</span></a><span class="cke_toolbar_separator" role="separator"></span><a id="cke_18" class="cke_button cke_button__link  cke_button_off" title="插入/编辑超链接" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_18_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(25,event);" onfocus="return CKEDITOR.tools.callFunction(26,event);" onclick="CKEDITOR.tools.callFunction(27,this);return false;"><span class="cke_button_icon cke_button__link_icon" style="background-image:url(http://dcoffee.edusoho.com.cn/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1248px;background-size:auto;">&nbsp;</span><span id="cke_18_label" class="cke_button_label cke_button__link_label" aria-hidden="false">插入/编辑超链接</span></a><a id="cke_19" class="cke_button cke_button__unlink cke_button_disabled " title="取消超链接" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_19_label" aria-haspopup="false" aria-disabled="true" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(28,event);" onfocus="return CKEDITOR.tools.callFunction(29,event);" onclick="CKEDITOR.tools.callFunction(30,this);return false;"><span class="cke_button_icon cke_button__unlink_icon" style="background-image:url(http://dcoffee.edusoho.com.cn/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1272px;background-size:auto;">&nbsp;</span><span id="cke_19_label" class="cke_button_label cke_button__unlink_label" aria-hidden="false">取消超链接</span></a><a id="cke_20" class="cke_button cke_button__image  cke_button_off" title="图像" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_20_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(31,event);" onfocus="return CKEDITOR.tools.callFunction(32,event);" onclick="CKEDITOR.tools.callFunction(33,this);return false;"><span class="cke_button_icon cke_button__image_icon" style="background-image:url(http://dcoffee.edusoho.com.cn/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -960px;background-size:auto;">&nbsp;</span><span id="cke_20_label" class="cke_button_label cke_button__image_label" aria-hidden="false">图像</span></a><span class="cke_toolbar_separator" role="separator"></span><a id="cke_21" class="cke_button cke_button__source  cke_button_off" title="源码" tabindex="-1" hidefocus="true" role="button" aria-labelledby="cke_21_label" aria-haspopup="false" onblur="this.style.cssText = this.style.cssText;" onkeydown="return CKEDITOR.tools.callFunction(34,event);" onfocus="return CKEDITOR.tools.callFunction(35,event);" onclick="CKEDITOR.tools.callFunction(36,this);return false;"><span class="cke_button_icon cke_button__source_icon" style="background-image:url(http://dcoffee.edusoho.com.cn/assets/libs/ckeditor/4.6.7/plugins/icons.png?t=F0UE);background-position:0 -1896px;background-size:auto;">&nbsp;</span><span id="cke_21_label" class="cke_button_label cke_button__source_label" aria-hidden="false">源码</span></a></span><span class="cke_toolbar_end"></span></span></span></span><div style="height: 200px;" id="cke_1_contents" class="cke_contents cke_reset" role="presentation"><iframe allowtransparency="true" tabindex="0" class="cke_wysiwyg_frame cke_reset" style="width: 100%; height: 100%;" src="%E7%A7%BB%E5%8A%A8%E7%AB%AF%E8%AE%BE%E7%BD%AE%20-%20%E7%B3%BB%E7%BB%9F_files/mobile.htm" frameborder="0"></iframe></div></div></div>
      <div class="help-block">此简介将显示在移动客户端的"关于网校"</div>
    </div>
  </div>

  <div class="form-group">
    <div class="col-md-2 control-label">
      <label for="logo">网校LOGO</label>
    </div>
    <div class="col-md-8 controls">
      <div id="mobile-logo-container"></div>
      <button class="btn btn-default btn-sm" id="mobile-logo-upload" type="button" data-url="/admin/setting/mobile/picture/upload/logo">上传</button>
      <button class="btn btn-default btn-sm" id="mobile-logo-remove" type="button" data-url="/admin/setting/mobile/picture/remove/logo" style="display:none;">删除</button>
      <p class="help-block">请上传png, gif, jpg格式的图片文件。LOGO图片的高度建议不要超过50px。</p>
      <input name="logo" value="" type="hidden">
    </div>
  </div>

  <div class="form-group">
    <div class="col-md-2 control-label">
      <label for="logo">公告</label>
    </div>
    <div class="col-md-8 controls">
      <input class="form-control" name="notice" type="text">
      <p class="help-block">将会在手机端banner下面显示网校的公告，建议用简练概括的语言描述，字数在20字以下。</p>
    </div>
  </div>


 <fieldset>
  <legend>设置启动图</legend>
  <div class="help-block">最多允许设置5张启动图(尺寸为640*960)，用户首次登录网校时会显示启动图。</div>
  <div class="form-group">
    <div class="col-md-2 control-label">
      <label for="splash1">启动图1</label>
    </div>
    <div class="col-md-8 controls">
      <div id="mobile-splash1-container"></div>
      <button class="btn btn-default btn-sm" id="mobile-splash1-upload" type="button" data-url="/admin/setting/mobile/picture/upload/splash1">上传</button>
      <button class="btn btn-default btn-sm" id="mobile-splash1-remove" type="button" data-url="/admin/setting/mobile/picture/remove/splash1" style="display:none;">删除</button>
      <p class="help-block">请上传png, gif, jpg格式的图片文件。</p>
      <input name="splash1" value="" type="hidden">
    </div>
  </div>

  <div class="form-group">
    <div class="col-md-2 control-label">
      <label for="splash2">启动图2</label>
    </div>
    <div class="col-md-8 controls">
      <div id="mobile-splash2-container"></div>
      <button class="btn btn-default btn-sm" id="mobile-splash2-upload" type="button" data-url="/admin/setting/mobile/picture/upload/splash2">上传</button>
      <button class="btn btn-default btn-sm" id="mobile-splash2-remove" type="button" data-url="/admin/setting/mobile/picture/remove/splash2" style="display:none;">删除</button>
      <p class="help-block">请上传png, gif, jpg格式的图片文件。</p>
      <input name="splash2" value="" type="hidden">
    </div>
  </div>

  <div class="form-group">
    <div class="col-md-2 control-label">
      <label for="splash3">启动图3</label>
    </div>
    <div class="col-md-8 controls">
      <div id="mobile-splash3-container"></div>
      <button class="btn btn-default btn-sm" id="mobile-splash3-upload" type="button" data-url="/admin/setting/mobile/picture/upload/splash3">上传</button>
      <button class="btn btn-default btn-sm" id="mobile-splash3-remove" type="button" data-url="/admin/setting/mobile/picture/remove/splash3" style="display:none;">删除</button>
      <p class="help-block">请上传png, gif, jpg格式的图片文件。</p>
      <input name="splash3" value="" type="hidden">
    </div>
  </div>

  <div class="form-group">
    <div class="col-md-2 control-label">
      <label for="splash4">启动图4</label>
    </div>
    <div class="col-md-8 controls">
      <div id="mobile-splash4-container"></div>
      <button class="btn btn-default btn-sm" id="mobile-splash4-upload" type="button" data-url="/admin/setting/mobile/picture/upload/splash4">上传</button>
      <button class="btn btn-default btn-sm" id="mobile-splash4-remove" type="button" data-url="/admin/setting/mobile/picture/remove/splash4" style="display:none;">删除</button>
      <p class="help-block">请上传png, gif, jpg格式的图片文件。</p>
      <input name="splash4" value="" type="hidden">
    </div>
  </div>

  <div class="form-group">
    <div class="col-md-2 control-label">
      <label for="splash5">启动图5</label>
    </div>
    <div class="col-md-8 controls">
      <div id="mobile-splash5-container"></div>
      <button class="btn btn-default btn-sm" id="mobile-splash5-upload" type="button" data-url="/admin/setting/mobile/picture/upload/splash5">上传</button>
      <button class="btn btn-default btn-sm" id="mobile-splash5-remove" type="button" data-url="/admin/setting/mobile/picture/remove/splash5" style="display:none;">删除</button>
      <p class="help-block">请上传png, gif, jpg格式的图片文件。</p>
      <input name="splash5" value="" type="hidden">
    </div>
  </div>

  </fieldset>



  <input name="_csrf_token" value="4253d99d13d8903560ffb063080795e920d63105" type="hidden">
  
  <div class="row form-group">
    <div class="controls col-md-offset-2 col-md-8">
      <button type="submit" class="btn btn-primary">提交</button>
    </div>
  </div>

</form>

        </div>

          </div>
  </div>